﻿using SQLite;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace StockTradTest.Data
{
    //指标数据库结构
    public class Indicator
    {

        [PrimaryKey, AutoIncrement]
        #region 属性
        public int ID { get; set; }
        /// <summary>数据日期</summary>
        public int Date { get; set; }

        /// <summary>移动平均线,常用天数:n</summary>
        public double Ma { get; set; }

        /// <summary>移动平均线,常用天数:短期5</summary>
        public double Ma5 { get; set; }

        /// <summary>移动平均线,常用天数:短期10</summary>
        public double Ma10 { get; set; }

        /// <summary>移动平均线,常用天数:中期20</summary>
        public double Ma20 { get; set; }

        /// <summary>移动平均线,常用天数:中期30</summary>
        public double Ma30 { get; set; }

        /// <summary>移动平均线,常用天数:中期60</summary>
        public double Ma60 { get; set; }

        /// <summary>移动平均线,常用天数:长期120</summary>
        public double Ma120 { get; set; }

        /// <summary>移动平均线,常用天数:长期250</summary>
        public double Ma250 { get; set; }

        /// <summary>指数平均线,天数常用12快速,26慢速</summary>
        public double Ema { get; set; }

        /// <summary>快速指数移动平均线与慢速指数移动平均线之差,m为快速,常用12,n为慢速,常用26</summary>
        public double Dif { get; set; }

        /// <summary>异同平均数,DIF的K日移动平均线,k常用为9</summary>
        public double Dea { get; set; }

        /// <summary>MACD(平滑异同移动平均线,由DIF和DEA,MACD值构成)</summary>
        public double Macd { get; set; }

        /// <summary>Boll线上轨，常用日期:20,2</summary>
        public double BollUp { get; set; }

        /// <summary>Boll线中轨，常用日期:20,2</summary>
        public double BollMd { get; set; }

        /// <summary>Boll线下轨，常用日期:20,2</summary>
        public double BollDown { get; set; }

        /// <summary>极限宽指标，</summary>
        public double Width { get; set; }

        /// <summary>威廉指标,反映是处于超买还是超卖状态,股票取值多少待考虑  </summary>
        public double Wms { get; set; }

        /// <summary>RSV指标,源于WMS但有区别,高-收与收-低的区别,是否真是这样? </summary>
        public double Rsv { get; set; }

        /// <summary>随机震荡指数</summary>
        public double Kdj { get; set; }
        /// <summary>市场动量指标,相对强弱指标 </summary>
        public double Rsi { get; set; }

        /// <summary>市场人气指标,On balance volume平衡成交量</summary>
        public double Obv { get; set; }

        /// <summary>BIAS乖离率，市场人气指标</summary>
        public double Bias { get; set; }

        /// <summary>PSY心理线，市场人气指标</summary>
        public double Psy { get; set; }

        #endregion
    }

}
